[Top] [Prev] [Next] [Bottom] [Contents]

SaPopulateForText

Populates HTML stream with data. The default is used if no Population Callback is specified in the Results Detail Dialog.

Synopsis

#include "SaRnHtml.h"
void SaPopulateForText(Widget list, 
					XtPointer client_data, 
					SaCallbackStruct *cbs);

Arguments

list
Not used.
client_data
Not used.
cbs
An SaCallbackStruct callback structure containing the data.

Return Values

None.

Description

Populates HTML stream with data. For each row, this callback prints a line for which there is a concatenation of the column data for that row. Spaces are added to align columns. This alignment will only be seen by the HTML user when the site is surrounded by <PRE></PRE> tags. A <BR> separates rows. No <BR> tag is placed if only one row is in cbs, or if the site is in a Sapphire loop construct.

Example

/*** the following ad-hoc example can be used without templates 
**/
SaCallbackStruct *cbs;
cbs = SaExecSQL("CEZANNE", "pubs2", SGESYBASE, "select * from 
authors");
/*** calls to set the beginning HTML context ***/
SaPopulateForText(NULL, NULL, cbs);
/*** calls to complete the HTML context ***/
SaFreeCbs(cbs);
Note: This call is generated automatically by Sapphire/Web through use of the Results found on the Object Bind Editor.

See Also



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.